package ytdp.careagle.com.ytdp.entity;

import com.google.gson.Gson;

/**
 * Created by lida on 2017/6/5 0005.
 */

public class LoginEntity{

    /**
     * accessToken : accessToken
     * username : username
     * contactName : username
     * companyName : companyName
     */

    private String accessToken;
    private String username;
    private String contactName;
    private String companyName;

    public static LoginEntity objectFromData(String str) {

        return new Gson().fromJson(str, LoginEntity.class);
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

}
